package cn.itrip.dao.user;

import cn.itrip.beans.pojo.ItripUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItripUserMapper {
    /**
     * 根据Id获取对象
     * @param id
     * @return
     * @throws Exception
     */
    public ItripUser getItripUserById(@Param(value = "id") Long id)throws Exception;

    /**
     * 根据属性条件获取对象集合
     * @param param
     * @return
     * @throws Exception
     */
    public List<ItripUser> getItripUserListByMap(Map<String, Object> param)throws Exception;

    /**
     * 根据属性条件获取记录数
     * @param param
     * @return
     * @throws Exception
     */
    public Integer getItripUserCountByMap(Map<String, Object> param)throws Exception;

    /**
     * 新增对象
     * @param itripUser
     * @return
     * @throws Exception
     */
    public Integer insertItripUser(ItripUser itripUser)throws Exception;

    /**
     * 修改对象
     * @param itripUser
     * @return
     * @throws Exception
     */
    public Integer updateItripUser(ItripUser itripUser)throws Exception;

    /**
     * 删除对象
     * @param id
     * @return
     * @throws Exception
     */
    public Integer deleteItripUserById(@Param(value = "id") Long id)throws Exception;
}
